import { NEWPWD, CHECKCODE, CHECKPHONE, HIDDENSEARCH, CHECKACCOUNT, SHOPHIDE, UNRECEIVED, LEVELINFOOBJ } from './mutations-types'

export default{
  [NEWPWD] () {},
  [CHECKCODE] () {},
  [CHECKPHONE] () {},
  [CHECKACCOUNT] () {},
  [HIDDENSEARCH] (state, value) {
    if (value) {
      state.hiddenSearch = value
    } else {
      state.hiddenSearch = false
    }
  },
  [SHOPHIDE] (state, value) {
    if (value) {
      state.shopcartHide = value
    } else {
      state.shopcartHide = false
    }
  },
  [UNRECEIVED] (state, value) {
    state.unreceived = value
  },
  [LEVELINFOOBJ] (state, value) {
    state.levelInfoObj = value
    state.levelVOS = value.levelVOS
  }

}
